﻿// <summary>
//   Encapsulates basic paremeters needed for implementing cached connector pattern.
// </summary>

namespace ATT.SharePoint.Patterns.BCS
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Practices.SharePoint.Common.Logging;

    public class CachedConnectorParameters<T, I> where T : BDCEntity<I>
    {
        #region Public properties

        public Action<List<T>> PopulateCache { get; set; }
        public Func<I, T> DatabaseCall { get; set; }
        public ILogger Logger { get; set; }

        #endregion
    }
}
